AInputEvent_getDeviceId

Get the id for the device that an input event came from.

Input events can be generated by multiple different input devices. Use the input device id to obtain information about the input device that was responsible for generating a particular event.

An input device id of 0 indicates that the event didn't come from a physical device; other numbers are arbitrary and you shouldn't depend on the values. Use the provided input device query API to obtain information about input devices.

extern (C) nothrow @nogc
int
AInputEvent_getDeviceId
()

Meta